/*
 * @Description: MQTT 配置
 * @Author: chendingfengmail@163.com
 * @Date: 2021-11-23 20:13:57
 * @LastEditTime: 2021-12-01 17:03:19
 * @LastEditors: chendingfengmail@163.com
 * @Reference: 
 */
// 检查请求协议
let checkProtocol = function () {
  let protocol = window.location.protocol
  let service = ""
  switch (protocol) {
    case 'http:':
      service = process.env.VUE_APP_MQTT_HTTP
      break;
    case 'https:':
      service = process.env.VUE_APP_MQTT_HTTPS
      break;
  
    default:
      break;
  }
  return service
}
export const MQTT_SERVICE = checkProtocol()
export const MQTT_USERNAME = process.env.VUE_APP_MQTT_USERNAME
export const MQTT_PASSWORD = process.env.VUE_APP_MQTT_PASSWORD
